import {
    createStore,
    applyMiddleware
} from "redux"
import thunk from "redux-thunk"
let initValue = {
    list: []
}

let reducer = (state = initValue, action) => {

    switch (action.type) {
        case "SET_LIST":
            state.list = action.data;

            break;

        default:

    }

    return JSON.parse(JSON.stringify(state))
}
export default createStore(reducer, applyMiddleware(thunk))